package com.x.ant.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

import java.util.Date;

@MappingTable(tableName = "ANT_DEPT_USER")
public class DeptUser extends BaseObject {
	@MappingColumn(columnName = "DEPT_ID", columnPk = true, columnLength = 32)
	private String deptId;

	@MappingTable(tableName = "ANT_DEPT")
	private Dept dept;

	@MappingColumn(columnName = "DEPT_PARENT_ID")
	private String deptParentId;

	@MappingColumn(columnName = "USER_ID", columnPk = true, columnLength = 32)
	private String userId;

	@MappingTable(tableName = "ANT_USER")
	private User user;

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public Dept getDept() {
		return dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}

	public String getDeptParentId() {
		return deptParentId;
	}

	public void setDeptParentId(String deptParentId) {
		this.deptParentId = deptParentId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
